
import requests

postid="10086"

# 从chrome中查看查询快递的传参情况
# 快递100的url
url='https://www.kuaidi100.com/query?type=ems&postid=%s&temp=0.515160062870571&phone='%(postid)

if __name__=="__main__":
    print(url)
    res=requests.get(url)
    print(res.text)
    print(type(res.text))
    print(res.json())
    print(type(res.json()))
    msg=res.json()["message"]
    print(msg)
    assert msg == "ok"
